#ifndef ENEMY_H
#define ENEMY_H
#include<QString>
#include<QPixmap>

class enemy
{
public:
    enemy(int);

    void updatePosition();

    int e_x;
    int e_y;

    QPixmap pix;

    QRect e_rect;

    bool is_free2;

    int e_speed;

    //横坐标随机偏移量
    int x_offset;

    int index;
};

#endif // ENEMY_H
